﻿using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace PefStudio.Windows
{
    /// <summary>
    /// Interaction logic for StatusLabel.xaml
    /// </summary>
    [Export(MainWindow.MainStatusBarContract, typeof(IStatusBarItem))]
    public partial class StatusLabel : AbstractStatusBarItem
    {
        public StatusLabel()
        {
            InitializeComponent();
            this.Content = "abc";
        }

        public void SetMessage(string message, bool highlighted)
        {
            Action setMessageAction = delegate
            {
                //if (highlighted)
                //{
                //    this.Background.
                //    BackColor = SystemColors.HighlightColor;
                //    ForeColor = SystemColors.HighlightTextColor;
                //}
                //else
                //{
                //    BackColor = SystemColors.ControlColor;
                //    ForeColor = SystemColors.ControlTextColor;
                //}
                Content = message;
            };
            setMessageAction();
        }
    }
}
